package com.demo.dao;

import com.demo.beans.PageQuery;
import com.demo.model.Origin;
import com.demo.model.SysAcl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OriginMapper {
    int deleteByPrimaryKey(Integer originId);

    int insert(Origin record);

    int insertSelective(Origin record);

    Origin selectByPrimaryKey(Integer originId);

    int updateByPrimaryKeySelective(Origin record);

    int updateByPrimaryKey(Origin record);

    int countByOriginNumberAndId(@Param("originNumber") String originNumber, @Param("id") Integer id);

    int countByOriginBarAndId(@Param("originBar") String originBar, @Param("id") Integer id);

    int countByOriginNameAndId(@Param("name") String name, @Param("id") Integer id);

    List<Origin> getAll();

    List<Origin> getPageByAll(@Param("page") PageQuery page);

    int countByAll();


}